import { Code, Cover, CreateDate, Digdit, Entity, PrimaryUuid, Text } from "../utils";

/**
 * id: string;
  name: string;
  parentId?: string;
  type: 'file_clip' | 'file',
  children?: IFileTree[];
  level?: string;
  drag?: boolean;//是否可拖拽，标记当前层的child，即为当前children列表是否可拖拽
 */
@Entity({ name: 'auto_file' })
export class AutoFile {
    @PrimaryUuid()
    id: string;

    @Cover()
    path: string;

    @Digdit()
    version: number;

    @Text()
    content: string;

    @CreateDate()
    create_date: Date;

    @Code()
    md5: string;
}
